package com.itheima.object1;

import java.util.Scanner;
import java.util.zip.CheckedOutputStream;

public class SpringTest03 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串!");
        String s = sc.nextLine();
        char[] chars = s.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            char c = chars[i];
            System.out.println(c);
        }

        System.out.println(s.length());
        System.out.println(chars.length);

    }
}
